package conf

const (
    UrlPrefixAdmin 	= "/{{ table.path }}/admin"
    UrlPrefix		= "/{{ table.path }}"
)


{#var {{ table.name }}EzConfig *orm.EzModelConfig#}
{#func inits() {#}
{#{{ table.name }}EzConfig :=&orm.EzModelConfig{#}
{#        ContainerKey: "{{ table.path }}.{{ table.name }}",#}
{#        TableName:    "{{ table.name | snake }}",#}
{#        TablePrefix:  "",#}
{#        TableSuffix:  "",#}
{#        Relations: map[string]*orm.EzModelRelation{#}
{#            "group": {#}
{#                ContainerKey: "demo.DemoGroup",#}
{#                JoinType:     "M2O",#}
{#                FieldLeft:    "parent_id",#}
{#                FieldRight:   "id",#}
{#            },#}
{#        },#}
{#    }#}
{#    container.SetEzModelConfig({{ table.name }}EzConfig)#}
{#}#}

{#{{ dump(table) }}#}